/*
 * @Author: codeD
 * @Date: 2022-02-17 20:19:53
 * @LastEditors: codeD
 * @LastEditTime: 2022-02-17 20:28:11
 * @Description: file content
 * @FilePath: \wpt\src\components\Navigator\type.tsx
 */
import { type } from 'os';
import { NavigatorConfigItem } from './../../config';
export type OnSearch=(item: NavigatorConfigItem, index: number) => void;
export interface NavigatorProps{
    dataSource?: NavigatorConfigItem[],
    onSearch?: OnSearch,
    isShow?: boolean,
    bgcolor?:  string, 
    current?: number,
}

export type UseSearchContrulor = (current: number, onSearch: OnSearch) => {
    currentShowIndex: number;
    handleItemSearch: (item: NavigatorConfigItem, index: number) => void;
}